package org.shushan.web.demo.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.shushan.framework.core.page.PageVo;
import org.shushan.framework.core.resp.Result;
import org.shushan.framework.web.base.CrudControllerV2;
import org.shushan.web.demo.entity.ElasticTest;
import org.shushan.web.demo.request.ElasticTestDto;
import org.shushan.web.demo.request.ElasticTestPage;
import org.shushan.web.demo.response.ElasticTestVo;
import org.shushan.web.demo.service.ElasticTestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * (TUser)控制层
 * @author zhigang.li
 * @email 2429967859@qq.com
 * @since 2023-09-16 22:25:41
 */
@RestController
@Tag(name = "SysLogController", description = "SysLogController")
@RequestMapping("elasticTest")
public class ElasticTestController
        extends CrudControllerV2<ElasticTestPage, ElasticTestDto, ElasticTestVo, Long, ElasticTest, ElasticTestService> {

    /**
     * 分页查询
     * @param request 请求参数
     * @return Response<Page < Resp>> 分页结果集
     */
    @Operation(summary = "testApi",description = "分页查询1121" )
    @GetMapping(value = "testApi")
    public Result<PageVo<ElasticTestVo>> testApi(ElasticTestPage request) {
        return Result.ok();
    }


}

